package com.leilei.service.impl;

import com.leilei.dao.ICommodityColor;
import com.leilei.dao.impl.CommodityColorImpl;
import com.leilei.entity.CommodityColor;
import com.leilei.service.ICommodityColorService;

public class CommodityColorServiceImpl implements ICommodityColorService {

    private ICommodityColor commodityColorDao = new CommodityColorImpl();

    @Override
    public CommodityColor selectCommodityColorByPcid(int pcid) {

        return commodityColorDao.selectCommodityColorByPcid(pcid);
    }

    @Override
    public boolean insertCommodityColor(CommodityColor commodityColor) {

        return commodityColorDao.insertCommodityColor(commodityColor) > 0;
    }

    @Override
    public boolean deleteCommodityColor(int pcid) {

        return commodityColorDao.deleteCommodityColor(pcid) > 0;
    }

    @Override
    public boolean updateCommodityColor(CommodityColor commodityColor) {

        return commodityColorDao.updateCommodityColor(commodityColor) > 0;
    }
}
